/*******************************************************************************
DialogX.cpp

	Author:		LiuDingXi
	e-mail:		liudx@gmail.com
	Date time:	2009-08-17

	Copyright (C) 2009
	All rights reserved.
	
*******************************************************************************/
#include "StdAfx.h"
#include "DialogX.h"

#if (_OS_ == _OS_WINNT_)
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
#endif//(_OS_ == _OS_WINNT_)


CDialogX::CDialogX()
{
}

CDialogX::~CDialogX()
{
}

BOOL CDialogX::OnInitDialog(GSight* pSight)
{
	//{{ INIT_ITEMS_BEGIN
	//}} INIT_ITEMS_END

	return GDialog::OnInitDialog(pSight);
}


BOOL CDialogX::OnCommand(UINT nCtrlId, UINT nCommand)
{
    BOOL bRet = FALSE;
    
	switch(nCommand)
	{
	case NTF_CLOSE:
        {
		    EndDialog();
		    bRet =  TRUE;
        }
        break;
	case NTF_CLICK_UP:
		{
			const DIALOG* pThis = (const DIALOG*)m_pThis;

			switch(pThis->pItem[nCtrlId].nNtfy)
			{
			case NTF_CLOSE:
			case NTF_CANCEL:
			case NTF_OK:
				{
				}
				bRet = TRUE;
			}
		}
		break;
	}
    
	return bRet;
}
